package com.wss.day06.bz;

/**
 * @author wangshaoshuai
 * @desc TODO
 * @date 2025/4/26
 */
public class Test01 {
    public static void main(String[] args) {
        double a = 12.5;
        String aToString = Double.toString(a);
        String result1 = aToString + 10;
        System.out.println("a转换为String类型后+10的结果为:" + result1);

        String str = "2.8";
        double strToDouble = Double.parseDouble(str);
        double result2 = strToDouble + 10;
        System.out.println("str转换为double型后+10的结果为:" + result2);
    }
}
